WebGl error shows up casually

I use plotly.js to create map (surface) plots. Sometimes it works fine, sometimes it shows webgl error like this

webgl setup failed possibly due to enabling preserveDrawingBuffer config. The device may not be supported by is-mobile module! Inverting preserveDrawingBuffer option in second attempt to create webgl scene.

and the plot displays

Version: plotly-1.56.0.min.js
OS: win7 64bit
Env: JavaFx
Browser: CefBrowser of JCEF (Java Chromium Embedded Framework)

Does anyone have any idea how to solve this instability?