Another issue.
You connect nodes of a highway to a railway.
Use level crossing if it crosses a railroad. No supervised. no barrier,
Best regards

https://wiki.openstreetmap.org/wiki/Tag:railway=level_crossing