I spent about and hour trying things and the best solution I could find was to manually copy the desired csv file to the build folder and then rebuild. I also had to turn off compiler warnings because it would treat them as errors. Here are the details. The csv files are located in AppData/Local/Arduino15/packages/m5stack/hardware/esp32/2.0.5+1.0/tools/partitions. I used minimal.csv, copies it to the build folder, and renamed it to partitions.csv. That fixed it! I hope this helps! Adam