وما لكم أﻻ تٲكلوا مما ذكر اسم الله عليه وقد فصل لكم ما حرم عليكم
And why should you not eat of that on which Allah's Name has been mentioned, while He has explained to you what is forbidden to you...
meaning, He has explained and made clear to you what He has prohibited for you in detail,
إﻻ ما اضطررتم إليه
except under compulsion of necessity.
In which case, you are allowed to eat whatever you can find.
Allah next mentions the ignorance of the idolators in their misguided ideas, such as eating dead animals and what was sacrificed while other than Allah's Name was mentioned when slaughtering them.
Allah said,
وإن كثيرا ليضلون بٲهوايهم بغير علم إن ربك هو أعلم بالمعتدين
And surely, many do lead astray by their own desires through lack of knowledge. Certainly your Lord knows best the transgressors.
He has complete knowledge of their transgression, lies and inventions