As mentioned, another option is to use Forced Perspective. This is where an object's distance appears to be different to its actual distance due to how it appears and/or moves.
By placing an object in the middle-distance and parenting it to the Camera's location, it can move as if it were actually placed "at infinity" - so that it moves in relation ...
It's hard to say for sure without seeing the file.
But I believe you're probably seeing places where the reflections shoot off into infinity.
Let's think about glass, which is one place where you mentioned problems. A ray either goes through the glass or reflects from the glass. You can get vastly differing depths depending on which it does. The depth ...
I am by no means used to work much with the compositor, that said, I hope what I am going to show here is not too far from what others would do.
Object Index method:
Activate the Object Index in the View Layer Properties:
Make sure the object in question has its own Object Properties -> Relations->Pass Index:
Render the image with F12 if only that ...