Query Error - query failed: INSERT INTO issue_encounter

Situation
When I create a direct encounter with Problems, Allergies and Medications, OEMR shows an error

Query Error

ERROR: query failed: INSERT INTO issue_encounter ( pid, list_id, encounter ) VALUES (?,?,?)

Error: Duplicate entry ‘1-0-2’ for key ‘issue_encounter.PRIMARY’

/var/www/html/openemr/interface/forms/newpatient/save.php at 189:sqlStatement

OpenEMR Version
I’m using OpenEMR version 7.0.2 installed on Ubuntu 22. 04 with MySQL as the database. Fresh Install.

Browser:
I’m using: Chrome

Operating System
I’m using: Ubuntu 22.04

Search
Did you search the forum for similar questions?
Yes

Logs
Did you check the logs?
Was there anything pertinent in them?
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All

INSERT INTO issue_encounter ( pid, list_id, encounter ) VALUES (?,?,?) ('2','','3',)