As mentioned, Strings are a problem on an Arduino with little RAM. Your device will be a lot more forgiving in that regard, but since you're using them all over the place, you may have overdone it. It looks like your firebase library uses them too.
Grab a Freemem function and see how much memory you're leaking.