Or just this:
$ sed -i -E '/maxUsers(Hard)?Limit.*0$/s/$/_000/' channels/app/limits.go
Source: https://github.com/mattermost/mattermost/issues/34271#issuec...