I live with my mom but I cannot cope up with her despite trying to and she keeps shouting at me for no reason and whenever I tell her to lower her voice she gets furious than before and this hurts me and make me feel weak all the time since I have a heart problem which is caused by ulcers

Some recommendations:

1- Avoid any sort of tension with her. When she shouts, leave the room respectfully and do something else.

2- Spend less time with her. Be around her less.

3- Remember that your mother has a great right on you. Remember all the years she served you when you were an infant and toddler. This makes you stronger when she does that to you.

4- Read this Dua:

https://www.duas.org/Amn.htm

5- Read this Dua:

https://www.duas.org/sajjadiya/s24.htm