It certainly is a risk for losing benefits.
One's financial situation becomes that
of the partner, as well. You want to check
with your case worker, and do some research
on your own, as local laws vary. Since marriage
(at least the state-sponsored kind) is essentially
a financial decision (well, there are some medical
issues, also), it probably serves little purpose.
There are religions which will marry you, outside
of the law (nothing illegal about them BTW); if you
desire the religious side of the experience, without
being tied down legally.