Reason- might ne any physical illness like
diabetes, addiction like tobacco, alcohol or performance anxiety due to overthinking. Prevention - stay away from bad habbits, control any disease, anxiolytic medicine for performance anxiety.
U can try masturbating 3-4 hours before sex.