When it made the post to your direct upload endpoint, it errored out with a 422. The Rails logs may help. Have you tried testing direct upload without any stimulus or anything else? You may have another underlying issue.
I just pulled down the source for this episode and tried things out. It worked (once I updated an unrelated issue sass-rails). What ActiveStorage storage mechanism are you using?