Understanding sets with an uncountable number of isolated points in $\mathbb{R}$.

$A$ (the isolated points of $U$) is a subspace of $\Bbb R$ which is second countable, so $A$ too is second countable. But $A$ is discrete in the subspace topology and a discrete space is second countable iff it is countable. QED.


As D. Brogan has pointed out in his answer, there is no need to argue by contradiction.

As Henno Brandsma's answer shows, there is no need to introduce the indexing set $U.$

So your argument can be simplified.

Simplifications aside, it is valid up to a point, but then, as you suspected, it goes wrong.

There are two problems that I can see:

The first problem is a matter of expression. You write, "This means that we can draw a 1-1 correspondence between each $q_u$ and $x_u$", but that doesn't really mean anything.

It is clear enough what you are getting at, viz. that there is a 1-1 correspondence between $U$ and a set of rationals. On that understanding, I thought at first that your argument was valid; but in fact, just as you suspected, it is "not entirely accurate"; and Aryaman Maithani's comment had already identified the gap.

If $A$ is the set of isolated points of a set $B \subseteq \mathbb{R},$ then every point $x \in A$ is contained in an open interval $I_x$ that is disjoint from $B \setminus \{x\},$ therefore disjoint from $A \setminus \{x\}.$

For your argument to be valid (or indeed for my own argument to be valid, when I tried to post a simplified version of your argument in a comment!), you need the intervals $\{I_x \colon x \in A\}$ to be pairwise disjoint: then you can choose a distinct rational in each interval, and deduce that $A$ is countable. But as Aryaman Maithani pointed out, they might not be pairwise disjoint.

Do not despair! Your proof can be patched up. Also, major surgery is not needed, just one more idea.