Ouch hope you get better, I follow you on Strava and saw this. I think I gave you kuddos
Yes a helmet is critical when riding mtb. Saved my butt many times! Those roots and little cobbles can be nasty, even a small washout that can perfectly grab your front.
Were you on a rigid bike?