Drug- or alcohol-related psychosis

Psychosis can be triggered by the use of alcohol or drugs, including stimulants such as methamphetamine and cocaine. Hallucinogenic drugs like LSD often cause users to see things that aren’t really there, but this effect is temporary. Some prescription drugs like steroids and stimulants can also cause symptoms of psychosis.
People who have an addition to alcohol or certain drugs can experience psychotic symptoms if they suddenly stop drinking or taking those drugs.
https://www.healthline.com/health/psychosis#types