Actually, in veconfig there is an option called P(U) response in the European grid code settings.
I’ve set this setting to drop the inverter power at a specified voltage from 100% power at 109,5% (251,85 volt) of the nominal grid voltage which down to 20% power power at 110% (253 volt) of the nominal grid voltage.
This exactly the functionality I was searching for. And the unit still works according to the grid code of my country.