This have suddenly sprung up.
I’m not sure when it happened or if it’s a BIOS update that cause it. I’m generally very unsure.
But I’ve notice the computer instantly wakes up if put it to sleep or hibernate.
Can you, please, describe what and where you edited which files? The linked article has some discussion with a variation, which makes it confusing about the exact details.
Also, if you have edited a file under /lib/, AFAIK, you could override that package provided file with an equivalent under /etc/. I don’t know if the specific path works like that, so it would be great if you could test this method.
For example, instead of editing /lib/systemd/system-sleep/nvidia, copy that to /etc/systemd/system-sleep/nvidia, and modify as you explained.
Please, post the contents of the relevant files in the post, to keep the solution in our forum, in case the linked page (URL) changes.