Can I talk to another professor about quitting my PhD before I talk to my PI?
Talking to other people including mentors is always a good idea.

It sounds like you're having trouble handling the stress of a PhD and your desires to drop out are not related to any particular issues with your advisor. It's almost impossible to tell how your PI would take it. However, I doubt most reasonable people would consider you seeking advice from others as "going behind their back."