Can you explain how physically it's even possible without just breaking off your z tab if its set correctly... It stops when it hits that. To move above the nozzle it has to move that up somehow, which is not possible without breaking.
The only way to end up with the bed Above the bottom of the nozzle is if you have an off z tab. You cannot move the platform with ANY g-code of ANY sort above the limit switch - thats its job!!
So.. you have either set your z-tab wrong or your table is not level, or are not seeing what you think you are seeing. It is not possible - plain and simple.
Post a video, including in frame the Z limit switches, because seriously, you are adamantly arguing something thats not possible by mechanical design is happening....
Seen the z-tab here, the thing with 2 gold standoffs attached at the back.. its pressing down on the limit switch and the bed is aligned.
For you to have the bed move *any* higher, two things must occur. Either the Z-Tab gets moved up, allowing further movement, or it doesnt, and the bed rips the z-tab off the printer
It has nothing to do with G-Code at this point....