In this forum, there is an eleven year old thread that mentions footer content as a factor:
https://www.msofficeforums.com/word/...-function.html
In other words, if the footer has (specific) content, it affects Undo. I don't remember if this was confirmed, but if it was, it should be fixed by now.