Healthy is rather relative in regards to ‘fasting’. Some say fasting can be really healthy while others say it isn’t.
While hydrating, a human can last pretty long without food. The first things our body uses are excess fats but once you run out of those your body starts breaking down organs and muscles.
To bring it back to your question, a couple of hours is in no means unhealthy. Personally I enjoy intermitten fasting and can go for 14-16 hours a day without meals. If anything these interfals make me (atleast feel) more healthy.
Edit: as this subreddit asks for substantiation on claims. I hope I was clear in not making any claims. And as it’s not very ethical to study starving people, there is not a lot of research.
Hunger is ok. We largely train ourselves to respond to hunger right away, if you maintain a healthy caloric intake there is absolutely no harm from it.
There are lots of cultures where people eat many small meals a day. There are many cultures where people eat one meal a day. Historically English people ate between 2 and 5 meals a day at various points in history, 2 was very common until fairly recently.
As long as the hunger doesn’t lead you to overeat or binge in response, it isn’t a problem if it’s just a few hours. But it sounds like there may be some emotional issues here related to eating and not eating, and that might be an indicator of disordered eating.