Welcome to Microsoft Q&A Platform, thanks for posting your query here.
I am not aware of a way to natively automatically unassign users from personal desktops once their sessions have been disconnected.
However, you can try doing this by using the GPO to logoff disconnected sessions and then use an automation script to do 'cleanup' by unassigning all logged off users from personal desktops. Please check this document for Information about unassigning personal desktops.
Hope that helps.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.