Anxiety over solo masturbation

I have anxiety over my ability to get and maintain an erection. When I’m with my girlfriend, I am eventually able to get hard and stay hard because she is patient with me. However, when I masturbate solo I seem to get nervous that I will not get an erection but can still cum without an erection The high cause me shame and anxiety.