Permits corrective remedies, including but not limited to, preclusion, reversal or modification for violations of certain discovery rules in criminal proceedings only when substantial rights of the party are affected and such remedies shall be available only to the extent to correct prejudice caused by the violation.