Please learn to use operators and to clearly explain your question.
Are you asking to find a new matrix Sq, such that the linear algebraic product Sq'*sq is equal to Q, where Q is NOT positive definite? NO. That is impossible.
Are you asking to find two matrices S and q, such that the product of the 4 matrices S*q'*S*q is Q? (I highly doubt this is your question, but you explicitly said TWO matrices.)
Since the first is impossible, you asking to find some matrix Sq such that Sq' * Sq is as close as possible to Q, based on some norm on the difference?
Are your matrices real, or are they complex? Must the solution live in the real domain?