I’m not sure of your organizational structure, and if I had to guess it probably is designed to take power away from engineers, but if you’re able to talk to a manager about your near hostile PM it might be a good time to do so so thst someone has your back. Obvious caveat that this assumes your entire management chain isn’t complete garbage, which is a big assumption considering the story you provided.
Unfortunately, you're right and I don't really have anyone to turn to within the organization.
My manager was wrangled into this by the project manager. I explained the situation and his response was "I agree with you, but you have to do whatever the project manager says".
While that isn't word for word, I'm not paraphrasing.