OPC UA Client Node Errors

I am using a Siemens S7-1200 PLC and connecting it within Node-Red on a Siemens IOT2040 and through to the OPC UA Client Node. Sometimes it works and gives the "active reading" and goes on a little run where it works, but then randomly goes red and throws "connection error Error: Connection Break" or "connection error Error: Server end point not known yet". These errors seem to change and I have also attached screenshots of two different error messages. Every time this happens I have to reboot the IOT2040 and it seems to reset it, but once it throws errors I cannot get it back.