@pandamandimaxTrees taken from the debug mode may have this error, but plants planted from purchased seeds should not have this error, so the bug has to be in your game folder.
Step 1. Rename The Sims4 folder to "The Sims4 old"
Step 2. Fix the game in Origin
Origin/ My games library - right-click on TS4 - option "Repair game"
You have to wait until Origin will fix all packs, not only the base game.
Step 3. Turn on the game - a new game folder will be created and you will have two - one old, one new
Step 4. Check if you still have this problem in the newly created game folder. Start a new game with the random sim.
If the problem disappeared
Step 5. Delete in the new game folder following folders:
"saves" and Tray.
Step 6. Go to "The Sims 4 old" folder and copy - your "saves " folder.
Step. 7. Paste this folder in a newly created game folder.
Step 8. Do the same with Tray folder and TrayDeleteItems file
Step 9. Launch the game and check if this problem also disappeared in this old save. However, it may happen that although the new saves will not have this error anymore, the old save will remain damaged.
The last step - delete The Sims4 old folder.
Your saves and library will be not changed or damaged
I don't work for EA