You can try entering Recovery and wipe off cache. Then use Galaxy App Booster in Good Guardians. Mine seemed to get better after doing these after beta 2 installed.
I've had the issue since the may one ui 7 update , the only way you can fix it is by going on to developer options and going down to the bottom and stopping any back round apps this will stop it over heating and helps battery