I really hate myself and everything is my fault

Sometime for minor thing happen and for some unknown reason i really hate myself and although is not directly cause by me.

Sometime also my brain tell me every thing happen is all my fault and i felt that i am stupid

Tbh i not sure if this is a mental illness