Welcome, Ananya!
I'm sorry to hear that your grand-mal and absence seizures are making it difficult to have friends. I started having grand-mal seizures when I was 9 years old, but was diagnosed with epilepsy when I was 14. Although, even as an adult I will have grand-mal seizures that slowly progress into epilepsy. So, I guess I have two different types of seizures as well.
I remember wetting myself at times when I was in the 4th grade - 8th grade and all of those times - I was at public school. It was so embarrassing, but of course I didn't understand to feel totally embarrassed until after I snapped out of it, which usually was when I was at home. I remember one of the times, I had enough in my mind to ask the teacher to get to the nurse's office and got a change of clothes. I have many many of those types of stories, but they're all terrible and I'm surprised how many teachers don't know what to do when a student wets themself. I had one teacher give me her sweater to wrap around my waste and told me to get to the nurse and wrote me a pass. I had one teacher, though, that let the pee puddle sit on the floor all day long (and we were in that class almost all day). One time I had a friend give me her sweater and followed me all the way to another class, trying to convince me to go to the nurse and I kept saying, "I'll be fine." and they're like, "This isn't fine!" I didn't go to the nurse that day, either. I don't know if she like honestly didn't notice the big yellow puddle on the floor or if she didn't know how to address it. I sat in those clothes all day long, not knowing much better. By the time I got home, my legs were irritated, red, and raw. It was so painful. I tried so hard to hide it from my mom, but wasn't able to when she found my wet clothes.
I remember my mom was like, "No way is this happening in high school. Middle school is bad enough," and she started having me use the bathroom every day before school, because I wasn't doing that before and I never had another incident of that.
But the loss of bladder control can happen to anyone and it's common with seizures. After wetting myself so many times in school, I didn't lose a whole lot of friends for that specifically, it's that they just didn't talk about it later on or ponder upon it. I have lost more friends that have seen me have an epileptic seizure than to peeing my pants during a grand-mal seizure. It's kind of weird, but that's what it has been in my life.
It's true that it's hard to hold friends with seizures, it just is. I think other people a lot of the time are afraid. When I started to date guys when I was in my teenage years and beyond, after a few months or something, I knew I'd have to tell them in case something happened and if they were going to be in this relationship for the long-haul then they wouldn't be afraid. I don't think I ever had a guy leave me for that specifically. The first two I dated were simply jerks and then I met my husband who had many friends growing up that had seizures so he knew how to handle them and what to do so it didn't bother him. Although, it scares him to death when I'm seeming out of it or about to have one because he doesn't want me in the hospital.
Yes, that type of thing is difficult and embarrassing, but as much as it hurts - life still moves forward. This wasn't something you could help, I sure hope by college that people might be more understanding that that type of thing isn't generally typical adult behavior, but understand that type of thing could happen to anyone that had to go bad enough and perhaps was ill, not able to make it, etc. I would find that the sooner I would come back to school, the better, because people wouldn't ask as many questions if I had a seizure the day before and was able to return the next day. People may come and go, but the ones that are your true friends will stick around through it all. Sometimes people are a bit more forgiving than you think, too, and other times they aren't.
I hope that things work out for you!