Optimize Danmaku2ASS parameters and exception handling