when I purchased s10 plus same problem faced but then Samsung released update to fix the issue now don't know what problem is with your mobile it's software or hardware issue if software then wait for update but if hardware then you will have to go nearby Samsung service centre
How much battery life you are getting? Usually heating issues will lower the battery performance. If you are getting a decent battery performance even if it's heating then there is nothing to worry. If battery performance is bad it can be a hardware issue and needs technical attention. Don't hesitate to take your phone to service center if you need further assistance.