REF: Period check compatabile with
Split from #24024 

cc @jbrockmendel 

There are a couple cases in `PeriodArray.__setitem__` that I didn't update, because `PeriodArray.__setitem__` is being remove entirely in #24024.