increasing buffer size on nodemcu and pin

Hello guys i have been working on the nodemcu for a while now and i have the two issues i will like u to help me with.

  1. am trying to send binary data to mqtt via nodemcu but am having size problem right now i can only use up to 64buffer size. the nodemcu goes to a soft reset when i give more than that. i check the specification of nodemcu and it says that it has a memory of 128bytes and storage of 4MB so i want to ask is there anyway to increase the buffer size without it going to a soft reset.

  2. i have used almost all the digital(GPIO) pins available on the nodemcu except the gpio 9,10 and 1. which i cant use for various reasons gpio(9 and 10) due to QIO and DIO reasons and gpio(1) due to wake reasons. so my question is can i use the tx and rx pin on the nodemcu along with softserial ?? or are there any other ideas i can explore??

thanks

Regards,
A