Y-limit switch not working

I just noticed that the front -limit switch on my machine is not working.

I tested the switch itself. Works like it should closed by default, open when pressed.
Nevertheless the motor stays powered when running into the switch. And I can clearly hear that the switch is indeed triggered mechanically.
The one in the back seems to work, but maybe just in the startup. After the startup it won’t move past the point 3 mm before the switch.

The motor should remain powered, but the machine should halt.
If you home the machine at start up the soft limits should prevent you from hitting the max X and max Y limits.

If the Max limits are not responding but are working, it could be the firmware has disabled them.
Did you edit any config through LightBurn?

I did. changed the offset of the homeposition for x and y via lightburn and transferred that to the board.
OK, as I understand it:
I did put the home offset of y to 25.5mm (that’s when it is actually in the 0/0 corner of the bed). So So when the machine is now moving to y 800 it is actually 825.5, which makes it run into the y-limit switch. Do got that right?

If so, shouldn’t all limit switches work in any use case as sort of “fail-safe” to prevent machine damage?

Not sure if related, but: I had a similar sounding issue with my x-axis limit switch. It tested every component (switch, wires, pcb connector) separately and all worked.
It turned out that the white connector on the pcb was not fully making contact with the white connector on the wire. I took some small pliers and made a very tiny bend in the connector pins on the pcb. This gave a very solid connection and my problem with the limit switch was solved.