I can’t help with any coding that would help force the user to change their post location - but you can definitely change the warning text, as with all text on the site:
Admin > Customize > Text > Search
https://your-forum-fqdn/admin/customize/site_texts?q=category.%20Please%20remove%20it.
Change to whatever //please remove it or change category//
