disk utility – Uninitialized External Drive Problem

I have a StoreJet Transcend hard drive. It suddenly stopped working. When I plugged it in my mac shows that it’s not readable. I tried restarting my mac.

enter image description here

Then when it didn’t work, I clicked initialize and it opens disk utility. I tried running first aid but it doesn’t work. I also accessed disk utility in recovery mode as well. And finally, I tried to erase it but it always ends up in error even with the security option at most secure. I even tried updating my OS.

enter image description here

The main reason I could think about is it’s not properly ejected. My sister often use my mac and she always forgets to eject the drive properly. I’m at a loss on what to do. There are some important files inside.
This is how it looks in disk utility

enter image description here