copanlisib hydrochloride and nivolumab in treating patients with recurrent or refractory diffuse large b-cell lymphoma or primary mediastinal large b-cell lymphoma

Conditions: Recurrent Diffuse Large B-Cell Lymphoma; Recurrent Primary Mediastinal Large B-Cell Lymphoma; Refractory Diffuse Large B-Cell Lymphoma; Refractory Primary Mediastinal Large B-Cell Lymphoma

Summary: this phase ii trial studies how well copanlisib hydrochloride and nivolumab work in treating patients with diffuse large b-cell lymphoma or primary mediastinal large b-cell lymphoma that has come back (recurrent) or does not responded to the treatment (refractory). copanlisib hydrochloride may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth. immunotherapy with monoclonal antibodies, such as nivolumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread. giving copanlisib hydrochloride and nivolumab may work better in treating patients with diffuse large b-cell lymphoma or primary mediastinal large b-cell lymphoma compared to standard of care.

primary objective: i. to assess overall response rate (orr) defined as complete response rate (cr) plus partial response rate (pr) (orr = cr + pr) of the combination of copanlisib hydrochloride (copanlisib) and nivolumab in patients with relapsed/refractory diffuse large b-cell lymphoma (dlbcl) and primary mediastinal large b-cell lymphoma (pmbcl). secondary objectives: i. to evaluate the safety of the combination of nivolumab and copanlisib in patients with relapsed/refractory dlbcl and pmbcl. ii. to determine the progression free survival, duration of response, complete response rate and overall survival of the combination of copanlisib and nivolumab in patients with relapsed or refractory dlbcl and pmbcl. correlative study objectives: i. to characterize the effects of the copanlisib and nivolumab combination regimen on tumor cells, tumor microenvironment and the immune response in relapsed/refractory dlbcl and pmbcl. ii. to assess predictors of response of the combination in relapsed/refractory dlbcl and pmbcl. outline: patients receive copanlisib hydrochloride intravenously (iv) over 1 hour on days 1, 8 and 15 of cycles 1-8 and days 1 and 15 of subsequent cycles. patients also receive nivolumab iv over 30 minutes on days 1 and 15 of cycles 1-8 and on day 1 of subsequent cycles. cycles repeat every 28 days for up to 2 years in the absence of disease progression or unacceptable toxicity. after completion of study treatment, patients are followed up for up to 100 days.

Eligibility criteria:
inclusion criteria: * patients must have a histopathologically confirmed diagnosis of diffuse large b-cell lymphoma (dblcl) or primary mediastinal large b-cell lymphoma * patients must have measurable disease, defined as at least one lesion that is \>= 15 mm (\>= 1.5 cm) in the longest axis on cross-sectional imaging and measurable in two perpendicular dimensions per spiral computed tomography (ct) scan or positron-emission tomography (pet)-ct scan * patients must have disease that is recurrent or refractory to standard therapy; patients must have failed front-line therapy and declined or are not candidates for autologous stem cell transplant (asct) or have failed prior asct * eastern cooperative oncology group (ecog) performance status of 0, 1 or 2 * life expectancy of greater than 12 weeks * white blood cell (wbc) \>= 2000/mm\^3 * absolute neutrophil count (anc) \>= 1000/mm\^3 * platelet count \>= 100,000/mm\^3 * hemoglobin \> 9.0 g/dl * total bilirubin =\< 1.5 x upper limit of normal (uln) (except patients with gilbert syndrome, who can have total bilirubin \< 3.0 mg/dl) * aspartate transaminase (ast) =\< 2.5 x uln * serum creatinine =\ = 30 ml/min (if using the cockcroft-gault formula) * negative urine or serum pregnancy test for females of child bearing potential within 7 days prior to registration * the effects of copanlisib and nivolumab on the developing human fetus are unknown; for this reason, and because the study drugs used in this trial are known to be teratogenic, females of child-bearing potential must agree to use adequate contraception (hormonal or barrier method of birth control; abstinence) prior to study entry, for the duration of study participation and for 5 months after the last dose of study drug; males who are the sexual partners of a female of child-bearing potential must use any contraceptive method with a failure rate of less than 1% per year for the duration of study participation and for a period of 7 months after the last dose of study drug; these periods of required use of contraception have been calculated using the upper limit of the half-life for nivolumab (25 days) and are based on the protocol requirement that females of child-bearing potential use contraception for 5 months and males who are the sexual partners of females of child-bearing potential use contraception for 7 months * females must not be breast-feeding for 1 month after last dose * females of child bearing potential must have a negative serum or urine pregnancy test (minimum sensitivity 25 iu/l or equivalent units of human chorionic gonadotropin \[hcg\]) within 24 hours prior to the start of nivolumab * a female of child-bearing potential is defined as any female who has experienced menarche and who has not undergone surgical sterilization (hysterectomy or bilateral oophorectomy) or who is not postmenopausal; menopause is defined clinically as 12 months of amenorrhea in a female over 45 in the absence of other biological or physiological causes; in addition, females under the age of 55 must have a documented serum follicle stimulating hormone (fsh) level less than 40 miu/ml * females who are not of childbearing potential (i.e., who are postmenopausal or surgically sterile) and azoospermic males do not require contraception * should a female of child-bearing potential become pregnant or suspect she is pregnant while she or her partner is participating in this study, she (or the participating partner) should inform the treating physician immediately * ability to understand and the willingness to sign a written informed consent document exclusion criteria: * any high grade b-cell lymphoma * patients who have had chemotherapy within 2 weeks (6 weeks for nitrosoureas or mitomycin c), anticancer antibodies within 4 weeks, radio or toxin immunoconjugates within 2 weeks, radiation therapy within 3 weeks or major surgery within 2 weeks prior to entering the study * palliative (limited-field) radiation therapy is permitted if the patient has additional measurable lesions to assess response of therapy * patients who have not recovered to grade 1 or less from any adverse events due to agents administered more than 4 weeks earlier (excluding alopecia) * patients who are receiving any other investigational agents * patients should be excluded if they have had prior treatment with a pi3 kinase inhibitor, anti-pd-1, anti-pd-l1, anti-pd-l2, anti-ctla-4 antibody, or any other antibody or drug specifically targeting t-cell co-stimulation or immune checkpoint pathways; note: patients who previously received cart therapy and progressed will be eligible * patients who have received autologous stem cell transplant (asct) =\< 8 weeks prior to the first dose of study drug or no adequate count recovery * patients with a prior history of allogeneic stem cell or solid organ transplantation * patients with evidence of active disease in the central nervous system (cns) defined as either the presence of active lesions on magnetic resonance imaging (mri) obtained within 4 weeks of registration or progressive neurological decline; patients with primary central nervous system (cns) lymphoma who develop systemic recurrence following standard therapy may be included as long as no active cns disease is present at the time or enrollment; similarly, patients with secondary involvement of the cns from a systemic lymphoma may be included as long as the cns disease has been optimally treated and they demonstrate no evidence of active cns disease * history of allergic reactions attributed to compounds of similar chemical or biologic composition to copanlisib and/or nivolumab * history of severe hypersensitivity reaction to any monoclonal antibody * co-morbid systemic illnesses or other severe concurrent disease which, in the judgment of the investigator, would make the patient inappropriate for entry into this study or interfere significantly with the proper assessment of safety and toxicity of the prescribed regimens * uncontrolled intercurrent illness including, but not limited to, ongoing or active infection, non-healing wound or ulcer, or bone fracture, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, known history of atrial fibrillation except those with 1 event that has resolved more than 1 year ago without recurrence, or psychiatric illness/social situations that would limit compliance with study requirements * pregnant women are excluded from this study because copanlisib and nivolumab are agents with the potential for teratogenic or abortifacient effects; because there is an unknown but potential risk for adverse events in nursing infants secondary to treatment of the mother with copanlisib or nivolumab, breastfeeding should be discontinued for 1 month after last dose if the mother is treated with copanlisib or nivolumab * patients with human immunodeficiency virus (hiv): * patients with hiv are eligible for the study provided they meet the other protocol criteria in addition to the following: * undetectable hiv load by standard polymerase chain reaction (pcr) clinical assay * absolute cd4 count of \>= 200 mm\^3 * willing to maintain adherence to combination antiretroviral therapy * no history of acquired immunodeficiency syndrome (aids) defining condition (other than lymphoma or cd4 cell count \< 200 mm\^3) * likely to have near normal lifespan if not for the presence of relapsed/refractory lymphoma * the patients with evidence of hepatitis b virus (hbv) are eligible provided there is minimal hepatic injury and the patient has undetectable hbv on suppressive hbv therapy; patient must be willing to maintain adherence to hbv therapy * patients with previously treated and eradicated hepatitis c virus (hcv) who have minimal hepatic injury are eligible * patients with active autoimmune disease or history of autoimmune disease that might recur, which may affect vital organ function or require immune suppressive treatment including systemic corticosteroids, should be excluded; these include but are not limited to patients with a history of immune related neurologic disease, multiple sclerosis, autoimmune (demyelinating) neuropathy, guillain-barre syndrome, myasthenia gravis; systemic autoimmune disease such as systemic lupus erythematosus (sle), connective tissue diseases, scleroderma, inflammatory bowel disease (ibd), crohn's, ulcerative colitis, hepatitis; and patients with a history of toxic epidermal necrolysis (ten), stevens-johnson syndrome, or phospholipid syndrome should be excluded because of the risk of recurrence or exacerbation of disease; patients with vitiligo, endocrine deficiencies including thyroiditis managed with replacement hormones including physiologic corticosteroids are eligible; patients with rheumatoid arthritis and other arthropathies, sjogren's syndrome and psoriasis controlled with topical medication and patients with positive serology, such as antinuclear antibodies (ana), anti-thyroid antibodies should be evaluated for the presence of target organ involvement and potential need for systemic treatment but should otherwise be eligible * patients are permitted to enroll if they have vitiligo, type 1 diabetes mellitus, residual hypothyroidism due to autoimmune condition only requiring hormone replacement, psoriasis not requiring systemic treatment, or conditions not expected to recur in the absence of an external trigger (precipitating event); however, patients with uncontrolled type i or ii diabetes mellitus will be excluded; uncontrolled diabetes is defined as hemoglobin a1c (hba1c) \> 8.5% * patients should be excluded if they have a condition requiring systemic treatment with either corticosteroids (\> 10 mg daily prednisone equivalents) or other immunosuppressive medications within 14 days of study drug administration; inhaled or topical steroids and adrenal replacement doses =\< 10 mg daily prednisone equivalents are permitted in the absence of active autoimmune disease; patients are permitted to use topical, ocular, intra-articular, intranasal, and inhalational corticosteroids (with minimal systemic absorption); physiologic replacement doses of systemic corticosteroids are permitted, even if =\< 10 mg/day prednisone equivalents; a brief course of corticosteroids for prophylaxis (e.g., contrast dye allergy) or for treatment of non-autoimmune conditions (e.g., delayed-type hypersensitivity reaction caused by contact allergen) is permitted * patients who have had evidence of active or acute diverticulitis, intra-abdominal abscess, and gastrointestinal (gi) obstruction which are known risk factors for bowel perforation should be evaluated for the potential need for additional treatment before coming on study * patients with other active malignancy =\< 3 years prior to registration for which active treatment is required must be excluded; patients with composite lymphomas that have a non-b-cell component must be excluded * exceptions: non-melanotic skin cancers or carcinoma-in-situ of the cervix * copanlisib is primarily metabolized by cyp3a4; therefore, the concomitant use of strong inhibitors of cyp3a4 (e.g., ketoconazole, itraconazole, clarithromycin, ritonavir, indinavir, nelfinavir and saquinavir), and strong inducers of cyp3a4 (e.g. rifampin, phenytoin, carbamazepine, phenobarbital, st. john's wort) are not permitted from 14 days prior to enrollment until the end of the study * note: because the lists of these agents are constantly changing, it is important to regularly consult a frequently-updated medical reference; as part of the enrollment/informed consent procedures, the patient will be counseled on the risk of interactions with other agents, and what to do if new medications need to be prescribed or if the patient is considering a new over-the-counter medicine or herbal product; other medications that are prohibited while on copanlisib treatment: * herbal medications/preparations (except for vitamins) * anti-arrhythmic therapy other than beta blockers or digoxin