As salam Alakum,
If you can read Arabic then I recommend the following book:
دفع إيهام الاضطراب عن آيات الكتاب
It discusses most of the alleged contradictions in the Quran. And it cleared a lot of confusion for me.
I was also pleasantly surprised that these contradictions when cleared up uncover very deep insights.
I think the verses are purposely written to appear contradictory in order to test who will think deeply about them versus who will simply reject them.
Anyway I hope this helps in a small way
Regards,
Ahmad.