Add check size of boot.img to prevent stuck in broken file