Strapi crashes after upgrading to 4.0.6

System Information
  • Strapi Version: 4.0.6

I upgraded Strapi to 4.0.6 and found out that when I want to edit some of the collection types entries (not all of them, but some), Strapi crashes and I’m getting the following errors in the console:

I tried to delete .cache and build folders, rebuilt Strapi - same result.
I downgraded back to 4.0.5, rebuilt - everything works just fine.Upgraded again to 4.0.6 - crash.
I think that it crashes on entries that have a multimedia field in them, or a multimedia file in rich text editor, though I’m still not entirely sure of that.
Not sure what to do with these errors either, but will have to downgrade back 4.0.5 again for now.