* What is this The following code is an arduino giga project with the arduino giga display shield. The project's goal is for the board to display 2 different group of buttons, users and modes.
The person managing the board will have to choose a mode and then select an user to send the selected mode to, uppon which a mqtt message will be send to the user's topic.
* What's the problem? the code currently has an issue where having selected a mode and clicking on a user, the board will "randomly" crash(led flashes red), sometimes it doesn't and it's good, but after a reset to try again, it will crash. I've also had this problem occur when changing modes, but I can't replicate it.
I've been stuck on this problem for the past 4 days, and used chatgpt extensively to try and find the issue to no avail.