Fix checkfail in  MatrixSetDiagV3
Currently `MatrixSetDiagV3` Op will lead to check fail due to lack of rank validation of input wrt diagonal.

The diagonal rank should be either same as input or one less than the input rank. But there is no check for this.

Might fix #65673 

