I've had this experience ever since I started pulling 18 years ago. As a child, my mom would cover my hair in conditioner (too slippery to grip hair), and have me wear a hat that was secure enough to stay all night with gloves for extra precautions. As an adult, I just apply castor oil and wear a satin sleeping cap with adjustable elastic bands so it doesn't slip off.
Some examples of sleeping caps on Amazon:
https://www.amazon.com/dp/B07XPT13QK/ref=cm_sw_r_apan_glt_i_79MCQPCAQ39KMDMYFCDR
Hope this helps you :)