A'salamu alaykum, brother. Whenever you feel like you have committed shirk, seek refuge in Allah from shaytan and repeat your Shahadah. La ilaha illAllah. In shaa Allah, Allah will accept it as a Jihad from you against your nafs. Once you do these, then stop thinking about it and move on. Don't ponder over these moments, and don't talk about them. Just move forward.
Allah knows best.