try flashing with XS++. change firmware verion that you are trying to folash if error persist