Originally Posted by
malgudi
Looks like he was here for 5 months, then went to Thailand and came back for another 5 months... maybe OP can clarify.
OP was quite clear. The issue is that, unlike under the old rules, the Thailand trip didn't reset the counter for the 180 days. Two stays of five months in 2023 ≈ 300 days minus whatever number of days he spent in Thailand. That would indeed cause trouble when leaving, esp if the Indian authorities are/become aware that he was working in India during that time.