Japanese version also has this behavior. Even early Sonic 2 prototypes carries this spike behavior. I think it was a design choice to make the game harder, but a cheap tactic. So they removed in sequels. If it was a bug they would definitely fix it when they fix invincibility power up.