I've followed this tutorial to set up RAID 1 during the installation of Ubuntu Server 22.04.
During the installation, it always fails with a RAID validation error.
(I also tried with Ubuntu 20.04).
Debian can be configured with the same RAID successfully and it can complete the setup.
[Disk layout]
[RAID configuration]
[Validation error]