In 5.0.1 why can't I insert a row in Calc?

I get the message “Filled cells cannot be shifted beyond the sheet” even when the cursor is in a blank cell.