Issue building code on vs code with esp32

For anyone interested, I managed to finally debug this with a friend. I had initialised an array that was too large, which caused the overflow issue. I fixed it by creating a new branch off an older working commit and backtracking to find the source of the issue.