Go to the settings of the device that you want to stop syncing → tap on your name → tap on iCloud → tap on photos → turn off the “sync this iPhone/iPad” switch.