Typically Event ID 51s in Azure are from hitting disk / VM limits. If the errors are occasional and users do not notice the effects, than these errors can be ignored.
If they are causing an error, your best bet is to try and size up the VM and see if that helps. Resizing the disk will not help in this situation because the temp drive is only bound by the VM level limits.