Take the derivative of the equation to obtain
$$2\frac{dy}{dx}+x \frac{d^2y}{dx^2}=4x^3 \bigg(\frac{dy}{dx}\bigg)^2+ 2x^4\frac{dy}{dx}\frac{d^2y}{dx^2}$$
Factorize the right hand of the equation
$$2\frac{dy}{dx}+x \frac{d^2y}{dx^2}=2x^3\frac{dy}{dx} \bigg(2\frac{dy}{dx}+ x\frac{d^2y}{dx^2}\bigg)$$
Now you see that you can rewrite this as
$$\bigg(1 - 2x^3\frac{dy}{dx}\bigg) \bigg(2\frac{dy}{dx}+ x\frac{d^2y}{dx^2}\bigg) = 0$$
So you have two linear ODEs that you can solve, the first giving
$$y=-\frac{1}{4x^2}+C$$
as a solution, the second giving
$$y=-\frac{A}{x}+K$$
However, when you fill them back into your original equation, you'll notice that these only satisfy it provided that
$$C=0 \; \text{ and } \; K=A^2$$
This settles the problem.