Well I have personal experience with this. I had chronic pain for a long time and I couldn't go anywhere. I couldn't go to see my friends or to go outside and enjoy anything because I was in constant pain. Eventually, I had depression due to lack of joy in my life and lack of going outside. If you are stuck with physical pain and it causes you to be non-mobile, then you are going to have mental and social issues. Hope this helps :)
You don't handle it at work u wait untill you have clocked out of the office and then you pull them to the side and try to have a discussion and if they do not want to have a grown up discussion and then remove yourself from the situation .