Very simple answer.
If you are collecting Social Security Disabilty benefits (SSD), then your monthly benefits will not be affected by any inheritance. Since SSD is based on your work history credits, you can collect SSD benefits as long as you are disabled, even if you are a multi-billionaire.
However, if you are receiving Supplemental Security Income (SSI) then your benefits most likely will be affected. Since SSI is a needs based program, not only must you meet the Social Security criteria for disability, you must also meet the financial requirements. Depending on the amount that you inherit, these assets may disqualify you because of the financial component of the program.