Blocks: Cannot read properties of undefined (reading 'variants')

I’ve been building a new Umbraco 13 site and whilst working with blocks I keep randomly getting the error “Cannot read properties of undefined (reading ‘variants’)” when you hit the submit button to save the blocks.

I’ve upgraded with each version of 13 and the error still persists. It is making it hard to edit and add content as you never know when it will happen - when it does all the changes you’ve made can’t be saved.

Its hard to tell what triggers it but it is possibly if you start editing again before the previous changes were saved. Also seems to happen if you try to click save but just miss the save button. Anyone else having this issue? I’ve noticed it now on three different installs.

Chrome:

 angular.js:15697 TypeError: Cannot read properties of undefined (reading 'variants')
    at mapElementValues (umbraco.services.min.js?d=638430867950000000:1:154281)
    at blockObject.retrieveValuesFrom (umbraco.services.min.js?d=638430867950000000:1:164536)
    at Object.submit (umbraco.directives.min.js?d=638430867950000000:1:575424)
    at vm.submitAndClose (umbraco.controllers.min.js?d=638430867950000000:1:184431)
    at fn (eval at compile (angular.js:16548:15), <anonymous>:4:170)
    at d.<computed> [as action] (angular.js:11517:22)
    at UmbButtonController.clickButton (umbraco.directives.min.js?d=638430867950000000:1:47809)
    at fn (eval at compile (angular.js:16548:15), <anonymous>:4:245)
    at e (angular.js:29123:13)
    at b.$eval (angular.js:19523:16)

Slightly different error in Firefox:

TypeError: can't access property "variants", toModel is undefined
    mapElementValues umbraco.services.min.js:1
    retrieveValuesFrom umbraco.services.min.js:1
    submit umbraco.directives.min.js:1
    submitAndClose umbraco.controllers.min.js:1
    Angular 2
    clickButton umbraco.directives.min.js:1
    Angular 5
    jQuery 2
angular.js:15697:15

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113566-blocks-cannot-read-properties-of-undefined-reading-variants