Three things. First go over your headstand technique with an instructor that you trust.
A proper headstand should not have you bearing all of the weight of the body on your head. If you are using the tripod version, most of the weight should be borne on your arms. The head should actually be fairly suspended without a lot of pressure.Second, do not do headstands if this causes persistent problems.