To avoid the submenus appearing off-screen, I suggest re-ordering the menu items so that the rightmost ones don’t have sub-submenus.
The theme also has configurable menu alignment, so if you’d be able to reduce the menu item count you could switch it to left alignment (making the rightmost menu having submenus be further away from the side of the screen).