When someone is causing you trouble or being difficult there’s always a reason; although it’s not always evident or obvious why they may be behaving in such a way.
Stand back and just know it’s not you. This may help you understand without feeling the need to take others’ negativity on board. It will also help you contribute to coping better with the presenting situation.
You can either say something to help the problem along its way, ignore it altogether, change the subject or simply choose to walk away.