If it is not that your model/data is too big then it is because your GPU has not freed the memory.
Go to terminal → nvidia-smi → kill -9 PID
Select the PID of the processes that are taking up a lot of memory (it will be usually python).