Unknown error when opening script

Hi.
So I have this Dynamo script that reads coordinates at corners of a structure. worked well, until I started using it in Revit 2025. Now it’s impossible to run when working in this Revit version.
When opening the script through Dynamo, an error message pops up saying “unknown error opening file” followed by file path. Other scripts from this same folder work.
When opening through Dynamo player, nothing happens.
The script itself works on older Revit versions. As I recall the problems started when I made some change in the script while working in Revit 2025.
This is the script.
Koordināšu noteikšana.dyn (44.5 KB)
So far I have been unable to find any answer that helps with this. Any help would be appreciated.