South Korea's impeached president, Yoon Suk Yeol, faces possible imprisonment over his declaration of martial law last month.