The things that's been done so far:
- Service studio reinstalled multiple times.
- Solution with all modules republished.
- Each of the template application republished and reinstalled later on.
- All of the providers and consumers republished.
- Platform server upgraded following the steps of the Checklist for OutSystems Platform Server Installation.
None of the above mentioned things helped with the issue.