Error in rq.fit.br(wx, wy, tau = tau, ...) : Singular design matrix

we dont have your data.
we dont know what your B is
we dont know what your S is
we dont know what your taus is

we can guess you are using lprq from quantreg, but its impossible to help you when we don't know what you are asking lprq to do

FAQ: How to do a minimal reproducible example ( reprex ) for beginners