Hi,
The long transmission line has its own distributed parameters. They creates reactance which depends on frequency. Moreover, they deforms edges of signals.
So you can solve your issue:
Decrease bitrate
Do correct bitrate calculations including real propagation delays ( https://www.nxp.com/docs/en/application-note/AN1798.pdf )
Use wires with low R/L/C parameters.
Use some repeaters.
Wireless CAN
For this distance probably you could use RS485 and UART.
Best regards,
Ladislav