https://www.mdpi.com/2072-6643/15/6/1354
I only did a postgraduate degree, so I don't have the practice reading scientific studies to determine which is true. Maybe someone with more knowledge can chime in?
The inverse possibility--that nicotine, and perhaps caffeine as well, heighten the risk of psychosis in those genetially predisposed--has also been considered.