[TESTS] Fix: Can't redefine method: forward on class in some cases (#34179)
### Details:
- *When we use `torch.jit.script` instead of `torch.jit.trace` we have a
sporadic issue that prevents graph creation, restarting the test hides
the actual error and causes "Can't redefine method: forward" error.*
- *This change also allows the actual error to be reported*
### Tickets:
- *CVS-175523*
- *CVS-179339*
- *CVS-156783*
Co-authored-by: Andrey Babushkin <andrey.babushkin@intel.com>
Co-authored-by: Denis Orlov <denis.orlov@intel.com>