You can do a quick-and-dirty pluginless implementation of this. Say your file is called blacklist.txt:
JavaScript:
const fs = require("fs");
const fileContents = fs.readFileSync("blacklist.txt", { encoding: "utf8" });
const aryNames = fileContents.split("\r\n");
$gameVariables.setValue(x, aryNames);
Where x is the ID of a free variable into which you can store the list of banned names.
Then after your name input processing, in a conditional branch "script" operand you can put
JavaScript:
$gameVariables.value(x).contains($gameActors.actor(id of actor you named).name())
This will return true if the name includes a string from the file, and false otherwise. You can have the event provide a message and redirect accordingly.
Note that this will not work on web deployments, as nwjs modules like fs aren't supported on those. It will also only match the exact string; if you want it to match on substrings, it requires a slightly different approach for the comparison.