For the small, space-suited floating snake to have bitten Morty on his ankle, the snake would've had to have lifted open it's glass face plate or helmet, and either would've died from the effect or could tolerate exposure for very short periods of time. Either way, the glass helmet and physical attack seem unnecessary.