Most of the time these errors are related to pictrs not responding fast enough. Usually because it has to convert the picture, video, gif and pictrs is already busy.
If you ever get these messages try again after 30 seconds (or so) and it should be fine