Can you alter the default wordpress strong password requirements?

See the answer here , which states

Currently it’s not possible to change the strength requirements of the
password. You can only deactivate it the functionality completely by
dequeueing the password script:

add_action( 'wp_print_scripts', 'DisableStrongPW', 100 );

function DisableStrongPW() {
    if ( wp_script_is( 'user-profile', 'enqueued' ) ) {
        wp_dequeue_script( 'user-profile' );

For changing the minimum strength of the password I can recommend this
plugin which builds on the same library and integrates nicely into