As always, it's just a thought experiment.

Let's imagine that characters with regular access to healing magic undergoes a brutal training regimen made of full contact fight with bleeding and broken bones ( but stopping before a shot could cause death ), real traps who does lethal damage ( but not enough to kill ) and full damage spellcasting ( but no insta death spells ).

Two questions:

1- would that be enough to gain real XP?

2- doing this too much risk driving the characters crazy?