Strengthen core and upper body
Doing a headstand requires the use of your upper body and core muscles. So it makes sense to make these muscles stronger.
Here’s a great exercise:
To strengthen your upper body and core, one of the simplest exercises you can do is the half-boat pose.