If I ate unknown food that might be halal or haram, do I have to throw it up? And is doing this haram? Also, if I pray without throwing it up, is my prayer accepted? Sorry, again, Shaykh, for asking more than one question.
All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
It is clear to us from your previous questions that you are greatly afflicted with Waswaas (obsessive whispers). Therefore, we advise you to always repel them, ignore them, and not pay any attention to them.
You should know that all kinds of food are permissible in principle, as Allah says (what means): {It is He Who created for you all of that which is on the earth.} [Quran 2:29]
So the food which you suspect to be forbidden is lawful in principle. You can eat from it, and there is no harm, and you are not obliged to throw it up. Rather, it is not prescribed for you to do so, and your prayer, in this case, is valid.
Allah knows best.
You can search for fatwa through many choices