Reference the LyX module instead of the LaTeX amsmath package.
The module allows to use the subequations environment. There is still a pending request to implement this environment natively in LyX's mathed. Contributed by Joel Kulesza.