But crucially learn to read error messages, don't just dismiss them as "error out". We can help you interpret them.
Are there any application folder level scripts involved.
It is rare to have scripts that have run on a previous version fail on a newer version. The most common error is caused by a change in security for some methods and one would get a message about a security problem.
It is possible to add a document level script that can issue a message if folder level function scripts are not present if a PDF is moved from one system with the scripts to another system that does not have the application folder level scripts.