Hey guys. After i worked on the car i have some new issues. It looks like the communication between Body ECU/ ECM... and the key ECU is not working. But the keyless functions are working

I can open the car with the key and also with the door handle (keyless). Also the green Key lamp is on and the car starts. the it runs a bit rough but quiet steady (think the P0171 is the reason for that). But i cant drive well when i put it in D and start driving it stalls as soon as i break.
To the Car: 2013 Gt86 AT
I rebuilded it after a fire in the enginebay. I swapped both wireharnesses in the front the ECM & Direct injector ECU.
U0100
U0164
U0140
U0155
P0171 (think this is because the other problems)
Sorry for my english i hope you understood everything