You need to create a boolean called IsInGameLevel, and set it to false when press the button that opens the main menu. Then set it to true when you press the button to go back into the game.
You now need to use a Branch node to check the IsInGameLevel boolean when you press the button for Pause. Don’t fire Pause when you are not in the Game Level, and IsInGameLevel is set to false.