That error only occurs if you have timelapse enabled and there is a problem reaching the configured webcam. So either disable timelapse or check webcam configuration.
Layer shift is probably an other issue, also server has normally no influence on it. We just send the gcodes and printer would ensure that all moves are within limits the printer can handle meaning acceleration, speed etc are limited by printer or set from gcode you created and we just had send as requested. Layer shift has normally a physical reason:
- especially if always away from end stop it is cross talk on end stop sensor causing a move to stop early.
- random shift: Motor force exceeded either from hitting a plastic part, acceleration/speed to high loosing steps, overheat so motor disabled a short while.
- moves outside limits, e.g. timelapse configured with making snapshots outside move area. Check settings or disable webcam.
To see if communication had issues enable logging and watch afterwards for words like: timeout, resend
These appear if communication goes wrong, but since send gcode is checksum protected wrong commands get corrected and not executed.