I am not sure what caused my memory loss for almost 5 months

Severe depression, disassociation, stress, life events, and maybe too much medication! I am slowly beginning to remember now the life has calmed down a bit

In your case, seizures should be checked out and get under control. Hope you feel better soon