I now also added a feature to the plugin I wrote that unloads all chunks on the server. This is player-safe, i.e. it won’t unload chunks that are in view of players. The server will run this now automatically once heavy lag is detected, after it updated the lag map.
So I will stop working on this now until we have some more lag data or indications that lag is still an issue. If you feel that lag is severe then please check the TPS and let me know if the TPS does not go back up again soon after.