How can I find out the name of the domain that produced the error?

When the ABAP short dump is displayed, choose "Debugger" and then, using the call stack display, select the program ZGUIXT16. Now you can display the value of the field "DOM". This is the name of the domain that produced the error.
If you have no possibility to invoke the debugger, only the ABAP short dump, then please look at the value of table DD04L. It contains the data element at the time of the breakdown. For example, the entry could look as follows: 
The data element in this case is RESADSGDEMAND. Using the repository information system, you can now find the domain name, which in this case is also RESADSGDEMAND.