Make inreplace errors fatal

Closes #32649.
Closes #32703.