For those interested in learning more about this topic, I recommend checking out the Violence Project by Jillian Peterson and James Densley [1]. This book opened my eyes to how complicated and multivariate this problem really is. It's much more complicated than simply guns and mental illness.
[1] https://www.goodreads.com/book/show/56969516-the-violence-pr...