If I'm correct you can change these settings in Sprintr/ the Mendix platform.
In order to do this you'll need to go the environments, select the environment and go to the runtime tab. Here you can add Custom Runtime Settings.
Anyone can able to answer this please. I try to configure under mxruntime on m2ee.yaml but it does not work, still have an error message limit at 5000 records
Project > Setting > Select Configuration > Custom Tab > Add New Custom setting
com.mendix.webui.StateSizeWarningThreshold = 100000
Run locally and got en warning on modeler console logs
message error: Feedback size of 5749 exceeds threshold of 5000 items which can result in severe performance problems.