Leaving a plug to a component off won’t stop the codes, because it’s always operating the valves and reading the pressure sensors to see if the tank pressure behaves as it should.
If I understood your post correctly it worked for some time after replacing the two valves, then the error returned. Which makes me ask were these OEM parts or aftermarket?
There are some excellent videos on YouTube about testing evaporative emissions systems using a bidirectional scanner, which IMO should be done prior to chasing a leak with smoke. The testing with the scanner will tell you if each valve operates properly and if the entire system holds pressure or in actuality has a leaking valve or leak elsewhere.
The Tech2 scanner is used by enthusiasts here; dealers or any shop worth doing business with will have a capable scanner.
When the purge valve on mine failed it behaved similarly to yours. Sometimes it was working for enough cycles the code would clear. Then it would leak again and I’d get the code back.