Currently the issue was I didn't have enough storage space, so what I did is iCloud Backup and then erased and restarted my iPhone as a brand new. When I tried to sign in my main iCloud account, it got two factor authentication and I chose to send the code via text and i didn't receive any code. Right now, I created a new iCloud and use it for the meantime. I tried to search on how to resolve this issue, I read some they say I have to wait 8-24 hours because apple cant receive any codes after spamming resend codes.
please help thanks