How to plumb a point of use water heater overflow
You can add a “T” fitting to your sink drain there are metal versions available also.
The “T” section needs to be above your P trap. This is how dishwashers are usually drained but should be fine for your overflow line.