I've seen this before but it never caused any issues, the preview still works, right?
The error doesn't appear to have anything to do with user code.
I would assume it's an internal issue with Foundry or PySpark, and the warning is leaking to user level where it's irrelevant.
Python 3.8 was dropped early this year - updating Code Workbooks to a supported version might make it go away.