Desktop
Click on your username in the header on the right side
Click on account then select Group Invites
You will be able to turn invites on or off from there
Mobile
Select the menu in the upper left
Select My Account then select Group Invites
You will be able to turn invites on or off from there