Inconsistency detected. Invalid view holder adapter positionViewHolder
Answer #1 100 %The error appears, because the system is trying to find a list element, which is not existent anymore, because you removed it in an earlier loop iteration.
Make sure you do not remove elements from a list while you are still iterating over list items or accessing the list.
Just create a separate list for the elements you want to remove and remove them AFTER the loops are complete.