Devil's Whispers
I think it is quite natural to have such thoughts when you are contemplating and learning about pretty much everything, and they are not necessarily “shaitani thoughts”. It might be your intellect wondering about various possibilities. In case of God, when you really put all these questions into serious consideration, you’ll easily realize that it’s not really possible that God has such and such negative attributes. Our fitrat (nature), our intellect, the tradition of prophets and the sources of religion all confirm that God has created the world to reward, bless and shower rehmat over His creation. This is why attributing any evil towards Him is inconsistent with all that. I recommend watching the following lecture which deals with this very question. https://www.youtube.com/watch?v=CaJ8ALZ8a1A&list=PLvDnnnkYLWQdvp6fCWJy-jzWgAAX_HKW6&index=13