Improved method:
1, when doing abdominal movements, don't put your hands on your neck and head. Even if you do, just touch them gently, don't use force.
2. Try to relax your neck, stretch naturally, and have the initiative to prevent your neck from exerting force.
After practicing for a period of time, the abdominal muscles will have strength, and the force on the neck will be less and less, so there will be no problem of neck pain.
In short, correct your movements, relax your neck and use your abdominal muscles to exert your strength.