Downgrade iOS 18?

Hello, I have a small problem. I downloaded the new iOS 18 beta on my iPhone SE 2020, and everything was fine until everything started lagging, and suddenly I had 30 GB of system data. I think it's because of iOS 18, because I didn't actually download anything. How can I downgrade? Thanks.