what in xposed caused this bootloop and how to prevent it from happening again?
Bootlooping with logs this messed up probably suggests that some other process is arbitrarily reading and writing from the io stream of the log file. In layman's terms, very bad stuff.

I think your best option is to just recover as much data as you can and reflash the ROM. Something has clearly gone very wrong.