Charging was on hold due to iPhone temperature

Charging was on hold due to iPhone temperature , yen bro ipdi varudhu faced this issue two time in my 3 months old iPhone 13

Is the iOS updated to latest version iOS 16.2 bro? There was a bug in older version of iOS 16, but its fixed sometime ago. Also do you notice heating in the backside or sides of the device when such warning appears?