Please post your config.g file.
See attached, thank you!
think this is your problem
M665 M665 L360.250 R144.823 H260 B140.0 ; set delta radius, diagonal rod length, printable radius, homed height and XY tower c
not the double M665 at the start of the line remove one of them and try again!