Google photos has this option nested within it settings → backup & sync.
I use Xposed Edge for various gesture based activities in which you can configure an apps activity as gesture. But I am unable to find this particular activity. Is there any other way (Using any xposed module or any other way) I can configure a toggle (QS Tile will be much better) which enables or disables Google Photos sync option?