What to check
Some publishing operations need a temporary local file before uploading media. A failure to create or write that file points to a server or filesystem problem.
Ask your host to check PHP’s temporary-directory configuration, free space, ownership, permissions, and filesystem restrictions for the PHP worker serving WordPress.