Can’t format partition in APFS

So, I have a Lenovo Legion 5 i5imh05 laptop. I wanted to install hackintosh ventura in it and found a pre-made efi for it. I booted up successfully the macos installer using usb of opencore. But, I can’t format the partition which I have created or allocated for macos in windows 11. When I try to format that partition in disk utility, it gives error and when I try to format again in APFS, it gets stuck in formatting or creating apfs then reboots my laptop. But, when I try to format in Macos extended journaled, it successfully formats but cannot format and gives error in APFS.

Drive #2 - SAMSUNG MZVLB256HBHQ-000L2 (0025_388C_91B1_263E.) [238 GB] C:

submitted by /u/IOS_HACKERJB
[link] [comments]