Code stop working after adding libraries

You can attach files if they are more than 9000 characters

Can you post in full the message you get at the end of the compilation (when you say “the program storage space increased from ~50% to about ~90%.” Do you really mean flash memory? using 90% of it is not an issue. If this is SRAM then that leaves you with not a lot for dynamic memory allocation at run time and might be indeed an issue)