From a religious perspective, this is doubting God (may God protect us), as you're indirectly implying that God has wronged you by creating you without your consent and then holding you accountable. This is incorrect because one of God's attributes is that He never wrongs anyone.
From a philosophical perspective, if you confine yourself to such thoughts, it will lead to depression. Therefore, it's essential to always look at the positive side to avoid drowning in the poison of your own thoughts.