yeah.. “never change a running system”
I guess it worked since you setup the pagefile on a second drive. Most important is to know, that the pagefile-size which windows allocate depends strongly on the free disc space and there is a formula for that. Also note that you can have pagefile on many different drives at same time, so you can split the “needed spaces”. But here also the recommendation: allways set a emergency-pagefile on the system drive.
If you interessted to know more about, I linked the details in an old topic: