ContactLayout extension not working with civicrm 5.10
Short answer: you need to update your extensions. Visit your extension admin page and apply all updates.

Longer answer: 
There are incompatibilities between older and newer versions of the ContactLayout and Api4 extensions. The breaking change was introduced in ContactLayout 1.4 and Api4 4.3 (which were both released on the same day).

Either both extensions need to be at or above those versions, or both need to be below those versions. If one is below and the other is above, things will be broken.