There are flexible hoses designed for spa applications available. A shelf item at big box stores in many regions. Google "flexible spa hose".
You also can re-do those PVC pipes, make a custom PVC union, and/or relocate the pump.
Post a photo from farther back. Let us see how much room you have.
Also, in one of your photos above, it looks like the "closest" spa pipe is on an angle. Optical illusion? Or why is that - is it flexible somewhere else?
Finally, I see you started another thread on this same topic. I've moved the two posts from there to here to minimize confusion.