macOS hides menu items if they don't fit and nothing can be behind the notch. Apps have no control over this. The app has a setting for maximum length. You could also move the menu item closer to the right to make sure it's not hidden when there's less space in the menu bar.