System freeze after 2 minutes on mac os sonoma

After I install Mac OS sonoma my mid 2011 macbook air keep freezing after booting for 2 minutes what should I do?

Author: @Medium_Feed2213