Or you can use a helmet that doesn't cover your face, which is very effective in avoiding hair collapse.
In principle, as long as the hair is not greasy, wearing a helmet is not easy to be crushed. Take off your helmet, grab your hair by hand and get up naturally.