Hi everyone.
I am pretty sure this should be bug but intend to see if someone got the answer to this strange behavior.
So, we have Samples geodatabase that contains the feature class, and we use two set of expression with
arcpy.analysis.Select to generate two feature classes from the dataset.

The expressions when used within ArcGIS Pro (Notebook, geoprocessing tool, definition query) works as intended.

But the same thing started failing since last week as seen from the log file

Now this the very first function of the script and it has been failing, strangely enough if I am run the whole script from Notebook there are no error

But it fails, I might try to use other arcpy function which are better suited to create temporary file but need to confirm if the mistake is from my side or its general geoprocessing mess.
TIA