You cannot avoid paying taxes through an agreement with the people paying you. The taxation is based on IRS rules regardless of your agreement.
Generally, compensation for emotional distress is taxable income unless it is due to a physical injury or physical sickness claim. If it was not from a physical injury or physical sickness claim you will need to report it on your return as income. When you walk through entering the 1099-NEC, you will need to select that it was not for work and that it was a lawsuit.
If this was for emotional damages due to physical injury or physical illness, then you will still need to enter it on your return, but after you do, you will then take additional steps to back the income out of your taxable income.
To enter the 1099 NEC and then remove the income take the following steps:
Then you will take the following steps to remove the income:
*Note some users may have a different navigation experience*