After resetting password, if a user refreshes the page they see "some body keys are invalid"

After a user resets their password using the forgot password flow (clicks forgot password → Gets an email → clicks link → resets their password) if they refresh the page and resubmit the form, they see a plain white screen that only says “some body keys are invalid”. This is pretty unprofressional. Is there a way for us to clean this up?