Stuck with incorrectly partitioned disk and cannot install macOS, stuck in recoveryOS.
Sometime ago I tried resetting my M1 macbook air through settings. At the time I couldn't update my OS because some kernel proccess didn't let me do it. Something didn't work correctly and now I'm stuck in recoveryOS running on my main disk drive which is incorrectly partitioned. I want to modify (reformat partitions and make use of the free space I have) it so I can install macOS properly. I've already tried doing it through the terminal yet to no avail.
Also I tried externally booting from USB into ARM supported Linux so I could safely repartition the disk and for that I need to reduce startup security, but this is the result I get whenever I try to change it through startup security utility (screenshot attached below).
I've also attached my current disk partitions so you can get a better understanding of the situation. Please help, I can provide any additional info that would be needed.
MacBook Air 13″, macOS 15.0