When editing the layout object after it was sent it to Plotly.newPlot, it causes an error log Uncaught container is not an object.
Seems only for non-objects that causes it:
var layout = {
  title: "title",
  margin: {
      l: 30,
      r: 50,
      t: 30,
      b: 10
    }
};
Plotly.newPlot('contourDiv', data, layout, {displayModeBar: false});
console.log(layout)
layout.margin = {} -> It works
layout.title = "edit title" -> Causes the error
Plotly.update('contourDiv', data, layout)
Before version 1.43.0 the above code works.
https://codepen.io/poldz123/pen/pqNBzj?editors=0010