GBoard GSM and SD problems

but once I combine the code for the GSM and SD in a sketch things start breaking.

How much free memory do you have left?