The presence of artifacts in the alpha values at the edges and corners is a result of upscaling. These artifacts are small in value and, as a result, are not visible. However, they prevent cropping.
I would be very happy if you could also take a look at my optimized version with NVIDIA Nsight. I will send you a Dropbox link via Discord so you can download the new version.