I can see from my Oura ring data that late night eating is hard on the body and the harm is correlated with the how heavy the meal was.
The issue is that it takes work to digest food. Your body does not get to rest as well when you eat late at night. You see it in your heart rate / hrv. Small amounts of carbs don't seem to matter much. A big protein meal is the worst.