Step 1
Create a folder named phpsessions in the root directory
Step 2
Now go to the affected domain where Nextcloud is installed and click on PHP Settings.
Step 3
Now search for the parameter session.save_path and enter the following and click OK afterwards: {WEBSPACEROOT}{/}phpsessions
Step 4
Now wait a few minutes and your Nextcloud login should work again.
Done!