Hello,
It is ok to feel scared of darkness as we all feel scared of one or the other thing but what matters is whether this feeling is intense, do you lose control? You mentioned it happened 4 to 5 months back otherwise you were ok. Is this feeling of being scared by darkness followed by some event?
It needs to be checked.
Next Steps
Consult a clinical psychologist for detailed evaluation