It's definitely a bug, technically one should be able to complete the whole game without getting hit once.
I have no idea what the cause could be though. Do you have by chance a screen refresh rate higher than 60hz? Or some other thing that could affect the game's framerate