Consider the following MWE:
\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{rotating, makecell}
\usepackage{tabularray}
\usepackage[skip=0.5ex, belowskip=1ex]{subcaption}
\renewcommand*{\thesubfigure}{\arabic{subfigure}}
\begin{document}
\begin{figure}
\settowidth\rotheadsize{3em} % from makecell
\adjustboxset{width=\linewidth, valign=c} % from adjustbox
\begin{tblr}{%hlines, vlines,
colspec={r X[c,h]X[c,h]X[c,h]X[c,h]},
colsep=3pt,
column{1}={cmd=\rotcell, font=\bfseries},
row{1}={font=\bfseries},
}
& A & B & C & D \[-2ex]
one
& \subfloat[\label{fig5a1}]{\adjincludegraphics{example-image-duck}}
& \subfloat[\label{fig5b1}]{\adjincludegraphics{example-image-duck}}
& \subfloat[\label{fig5c1}]{\adjincludegraphics{example-image-duck}}
& \subfloat[\label{fig5d1}]{\adjincludegraphics{example-image-duck}} \
two
& \subfloat[\label{fig5a2}]{\adjincludegraphics{example-image-duck}}
& \subfloat[\label{fig5b2}]{\adjincludegraphics{example-image-duck}}
& \subfloat[\label{fig5c2}]{\adjincludegraphics{example-image-duck}}
& \subfloat[\label{fig5d2}]{\adjincludegraphics{example-image-duck}} \
\end{tblr}
\end{figure}
\end{document}
Why numbering of subfloats captions start with 41? Even if I before compilation delete files .aux and .log, the result is the same.
If i use tabularx table (see answer), caption numbering is correct. So I wondering, if in tabularray settings is missed something or it interact with subcaption (with subfig is the same) on unexpected way?
In compilation I use tabularray version 2021N (temporary available on github see link 2021N), which is announced for September 1st.

