The worry and anxiety about it makes it worse like a bad cycle but I eventually got through it so I believe in you being able to as well. You might have to focus more on you first, play music, or read a smutty book or take a bath or anything to pamper and kinda set a mood for yourself. Partner comes after that, I found a partner made the anxiety worse in the beginning. You want to avoid the 'brakes'. Try to avoid the pressure of having to perform.
I turned out to have a strong pelvic floor that had a lot of trouble relaxing and so exercises like deep breathing through the pelvic floor helped and I still use it. One go-to for me is doing a happy baby yoga pose and deep breathing in the pose. I had to use dialators at one point for point release. It was a whole process! It's hard to know if your pelvic floor is too tense or not strong enough or a mix of both, there was this subreddit I use to read a lot about it. Fuck reddit but they had a community for everything lol.