Arduino memory is very limited, especially if you use one of the smaller options. Select patch and anything with strings is going to use quite a bit of that memory.
One option to reduce memory is to have fewer time segments. If part of the reason you have so many is so you can slowly make lights brighter/dimmer, maybe you could use fade instead of having so many time segments. The fade node would go between the select and pwm nodes. It might not work for your use-case, but it is something to consider.
If you are trying to simulate a day, you might be able to calculate the desired brightness based on time-of-day instead of using select. Based on just hour-of-day, turn lights off if it is before dawn or after dusk, else fade to full-bright over X hours if it is before noon, else fade to full dark over X hours if it is after noon. The down-side of this is it wonāt work well the first day if you start the cycle during daylight hours. You might be able to work out a formula to calculate brightness based on time-of-day (maybe one formula for use before noon, and a different formula for use after noon).
Any time you have this:
You are wasting memory. You are just converting true/false to true/false, so it is not needed.
You are also feeding analog-read to discretize to debounce. This forces discretize to re-calculate every time there is a slight variation from analog-read, even if debounce ends up ignoring it. It wonāt save you any memory, but it will likely free up CPU cycles if you feed analog-read to debounce, then to discretize.
It wonāt free up much memory, but you are using true-to-pulse conversion node. This is the same thing as the built-in pulse-on-true node, and in fact is the default action if you connect a boolean output to a pulse input, so usually it is not needed.
Since ACT pin on your pwm-load nodes is always true, you might be able to free up a few bytes using this instead:
Using the final concat to add percent symbol instead of having additional concat nodes in to-percent nodes might save you some memory since the strings will not need to be copied as often. The final concat might look like this:
Using a combination of techniques, you might be able to get your program to fit into the available memory. If you want all seven time-segments and to display strings, you might have to switch to an Arduino model with more memory.