$\DeclareMathOperator\SO{SO}$Recall that the closed-subgroup theorem (Wikipedia link) says that a closed subgroup of a Lie group is a Lie group.
I am pretty sure that this theorem should have a "local" generalisation. I'll formulate it for $\SO(n)$.
Generalisation? Fix small $\varepsilon>0$. Let $X\subset \SO(n)$ be a closed subset contained in the closed ball $\overline B_{e}(\varepsilon)$ centred at the identity $e$ of $\SO(n)$. Suppose $X$ has the following properties.
$X=X^{-1}$.
$X\cdot X\cdot X\cdot X\cap \overline B_{e}(\varepsilon)=X$.
Then there exists a Lie group an $G$, a morphism $\varphi: G\to \SO(n)$ and a finite subset $S\subset \SO(n)$ such that $$X=\overline B_{e}(\varepsilon)\cap S\cdot \varphi(\overline B_{G,e}(10 \varepsilon)),$$
where $\overline B_{G,e}(10 \varepsilon)$ is a small ball in $G$. In particular, $X$ is a submanifold of the ball (with finite number of connected components).
Are you aware of some statement of this kind? (the power $4$ is random, maybe it should be replaced by some other power)