Node Red keeps restarting

Hey all. I seem to be having an issue with Google cast nodes (well I think thats it). Node-Red keeps restarting and watching its log I see
6 Oct 11:08:15 - [info] [cast-to-client:Peter] volume changed to 30
6 Oct 11:08:27 - [red] Uncaught Exception:
6 Oct 11:08:27 - [error] TypeError: node.error is not a function
at errorHandler (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:52:10)
at getSpeechUrl (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:192:9)
at Timeout._onTimeout (/opt/node_modules/node-red-contrib-cast/cast-to-client.js:836:33)
at listOnTimeout (node:internal/timers:561:11)
at processTimers (node:internal/timers:502:7)
[11:08:28] WARNING: Node-RED crashed, halting add-on
[11:08:28] INFO: Node-RED stopped, restarting…
s6-rc: info: service legacy-services: stopping
[11:08:28] INFO: Node-RED stopped, restarting…

I have just took the parts out in the flows that use the cast and it seems stable. Does anyone have an idea on how to fix this?