Based on details you had recent miscarriage the worry of it might produce a type of tension headache
Do neck relaxation exercise,have plenty of fluids, engage yourself,have paracetamol for severe headache and calcium supplements
and nutritious foods.
If headache persists and is worrisome you need to consult Neurologist
for clinical examination,fundus examination and further evaluation to rule out structural lesion.One need to rule out cerebral venous thrombosis