It seems to have fixed it for now but do you have some insight on what the procedure was supposed to do? You gave me the band aid but it would be nice to get closer to the fix of the problem.
I don't really think so. ;-) It would mean you would have to deal with the internal structures and all the details of how Excel works and how the data is stored.
What I can definitely say is that the VBAproject is intact and working, even if it looks strange. In general, you cannot remove this type of module because the VBA interface does not allow this.
When I view the binary structure of the VBAproject I can see that e.g. the module header of ThisWorkbook is okay
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Option Explicit
And the "unusual" module ThisWorkbook1 has nearly the same settings
Attribute VB_Name = "ThisWorkbook1"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Option Explicit
If you want to have look at the details what all that means start here
https://docs.microsoft.com/en-us/openspecs/microsoft_general_purpose_programming_languages/ms-vbal/4599fae2-3f41-4e70-968e-2398741f446b
However, you can do some research and try to understand what this means, but it doesn't really get you closer to the cause of the problem.
Is that a bug in Excel? No.
My procedure opens Excel in safe mode, means you just load Excel, no AddIns, no additional files like PERSONAL.XSLB nor anything else. If that solves the issue means further one of your (i guess COM-) AddIns is causing the issue.
It might also be a problem of your locale PC / installation issue, maybe you mixed up some system DLLs from different Office versions. But that are guessing games.
I would try an Online repair, in most cases this solves such strange issues.
Repair an Office application - Office Support
Andreas.