Is it possible to clear error codes and return to AXIS_STATE_CLOSED_LOOP_CONTROL or restart board by sending some command to UART?
Or may be I can disable to go to IDLE when non critical errors?
Yes, you can clear errors by writing the value 0 to the error parameter. For example
w axis0.error 0