OJS 3.5.0.1 error when editing incomplete submission

There are some incomplete active submission in the editor dashboard. When I click “Complete submission” I see the DOMException message in the console (though the page appears to load correctly). When I then click Cancel and then OK, the action does not work and I see the 404 POST error.

When I then click through the submission stages in this incomplete submission, I occasionally see 400 errors such as

although in these cases nothing becomes obviously broken in the UI. Don’t mind different submission IDs, I’ve tried to reproduce this with different incomplete submissions and it works every time.

With all these 400 and 404 errors, although they are unsettling, I managed to complete and submit one of the incomplete submissions successfully. The only thing that obviously didn’t work was Cancelling (although I didn’t try to test all the submission features).

There are no php errors in the logs.

What application are you using?
OJS 3.5.0.1 (updated all the way from 2.x via several intermediate versions), apache, php-fpm8.4

Additional information
I wonder if this topic is related - it also deals with incomplete submissions, with 404 errors in the browser console "OJS 3.5 – Error deleting incomplete submissions: 'The requested resource was not found'"