Error When Adding Days to Dataset Reference - error: argument out of range

I have a column that uses a dataset column. In the formula, I use the code “date(this) + days(10)” to add 10 days to the date. In some cases, it returns a date in other cases it returns the error message “error: argument out of range”. How can I fix this?