[3.8.2] has-dialog hanging build process

We use Jenkins to make our game builds and since upgrading to 3.8.2 we’re running into this issue randomly and uncertain how to fix it:
Read config from path C:\workspace\CardGame\main/buildscripts/buildConfig_web-mobile.json…
[Package] Profile migrateLocal: web-mobile(1.0.1)…
Error: Message does not exist: information - has-dialog
at C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\node_modules@editor\creator\dist\message\protected\browser\index.ccc:1:1316
at Generator.next ()
at C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\node_modules@editor\creator\dist\message\protected\browser\index.ccc:1:327
at new Promise ()
at C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\node_modules@editor\creator\dist\message\protected\browser\index.ccc:1:75
at request (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\node_modules@editor\creator\dist\message\protected\browser\index.ccc:1:1165)
at Object.request (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\node_modules@editor\creator\dist\message\public\browser.ccc:1:225)
at Object.request (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\node_modules@editor\creator\dist\message\index.ccc:1:818)
at PluginManager.checkPlatformsInformation (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\builder\dist\share\plugin-manager.ccc:1:7485)
at TaskManager._addTaskInCommand (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\builder\dist\browser\tasks.ccc:1:14515)
at TaskManager.add (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\builder\dist\browser\tasks.ccc:1:12577)
at buildWithCommand (C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\builder\dist\browser\tasks.ccc:1:20204)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at C:\ProgramData\cocos\editors\Creator\3.8.2\resources\app.asar\builtin\builder\dist\browser\index.ccc:1:4306

You can try re-exporting buildConfig_web-mobile.json to build again

Just to be clear, this works like 90% of the time and then randomly fails. It’s not a problem in the json file but something about the editor code that is closed source.