Quote:
I created a grayscale 2,017 x 2,017 image with four layers and it took up just under 8MB as an uncompressed PNG
PNG is a lossless format, default compression is the maximum '9', not much benefit, except quick save/load time with zero compression.
2017 x 2017 pix is not large these days you should have no problems. Exporting as a PNG will lose any layers.
An example albeit in colour,
Export as a '9' compressed png 4.5 MB
Export a zero compressed png 16 MB - but only the 'merged' image for png format
Save as a Gimp xcf, which keeps the 4 layers file size = 46MB

When it comes to editing remember the image is held in memory - the size shown in the status bar - in this case 88 MB
8 GB memory is plenty, Gimp only uses 1 cpu anyway, processing time depends on cpu speed.