How can I use an external SPI flash chip to expand Photons user memory
Depends on the chip used
I was going to use W25Q64JVSSIM TR., 8 Megabyte flash
But please do make your own recommendation
This is a NOR flash hence SPIFFS or FatFs would be libraries to help with that.
Have a look at this