So maybe it is a mod you are using 🤔
Mods like UniqueEnchantments, Scaling Health or similar have influence on the hearts/health
Check for these mods - if there are no such mods, add the latest.log (logs-folder) after restarting the game - maybe there are some information
Add the log with sites like
https://paste.ee/