Some times Islam can be too much for some who are new or don’t fully understand, so they choose to leave or drop it, which is understandable.
It’s important to take your time to learn and understand it. Allah won’t punish you for a small mistake, but even then it’s good to ask for forgiveness to the one who is most merciful often forgiving.
Indeed, those who believed then disbelieved, then believed and again disbelieved—˹only˺ increasing in disbelief—Allah will neither forgive them nor guide them to the ˹Right˺ Way. (4:137)
O believers! Do not take disbelievers as allies instead of the believers. Would you like to give Allah solid proof against yourselves? (4/114)
Surely the hypocrites will be in the lowest depths of the Fire—and you will never find for them any helper (4:145)
except those who repent, mend their ways, hold fast to Allah, and are sincere in their devotion to Allah; they will be with the believers. And Allah will grant the believers a great reward. (4:146)
As long as you come back to Allah with a genuine heart, allah will forgive you. So don’t be afraid that “I left Islam and allah is angry with me” just come back to Islam, to the most beautiful thing in existence.